package com.serkol.abmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName tracks_log
 */
@TableName(value ="tracks_log")
public class TracksLog implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long oldCarId;

    /**
     * 
     */
    private Long newCarId;

    /**
     * 
     */
    private Long opratorId;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private Date date;

    /**
     * 
     */
    private String remark;

    /**
     * 
     */
    private Long tracksId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public Long getOldCarId() {
        return oldCarId;
    }

    /**
     * 
     */
    public void setOldCarId(Long oldCarId) {
        this.oldCarId = oldCarId;
    }

    /**
     * 
     */
    public Long getNewCarId() {
        return newCarId;
    }

    /**
     * 
     */
    public void setNewCarId(Long newCarId) {
        this.newCarId = newCarId;
    }

    /**
     * 
     */
    public Long getOpratorId() {
        return opratorId;
    }

    /**
     * 
     */
    public void setOpratorId(Long opratorId) {
        this.opratorId = opratorId;
    }

    /**
     * 
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 
     */
    public Date getDate() {
        return date;
    }

    /**
     * 
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * 
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 
     */
    public Long getTracksId() {
        return tracksId;
    }

    /**
     * 
     */
    public void setTracksId(Long tracksId) {
        this.tracksId = tracksId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TracksLog other = (TracksLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOldCarId() == null ? other.getOldCarId() == null : this.getOldCarId().equals(other.getOldCarId()))
            && (this.getNewCarId() == null ? other.getNewCarId() == null : this.getNewCarId().equals(other.getNewCarId()))
            && (this.getOpratorId() == null ? other.getOpratorId() == null : this.getOpratorId().equals(other.getOpratorId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getTracksId() == null ? other.getTracksId() == null : this.getTracksId().equals(other.getTracksId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOldCarId() == null) ? 0 : getOldCarId().hashCode());
        result = prime * result + ((getNewCarId() == null) ? 0 : getNewCarId().hashCode());
        result = prime * result + ((getOpratorId() == null) ? 0 : getOpratorId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getTracksId() == null) ? 0 : getTracksId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", oldCarId=").append(oldCarId);
        sb.append(", newCarId=").append(newCarId);
        sb.append(", opratorId=").append(opratorId);
        sb.append(", userId=").append(userId);
        sb.append(", date=").append(date);
        sb.append(", remark=").append(remark);
        sb.append(", tracksId=").append(tracksId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}